package pattern.builder.simple;

// 将指挥者类和抽象建造者和在一起的简化建造者类
public class SimpleComputerBuilder {
    private Computer computer = new Computer();
    public void buildCpu(String cpu) {
        computer.setCpu(cpu);
    }
    public void buildGpu(String gpu) {
        computer.setGpu(gpu);
    }
    public Computer buildComputer() {
        return computer;
    }
}
